var express = require('express')
var router = express.Router()
var multer = require('multer')
var fs = require('fs')
var path = require('path')

// 静态资源文件

router.get('/img/:name', function (req, res, next) {
	res.writeHead(200, { 'Content-Type': 'image' })
	res.end(
	  fs.readFileSync(path.join(__dirname, '../static/img/' + req.params.name))
	)
})

module.exports = router
